package com.east.config;
/**
 * 定时任务
 */

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Configurable;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

@Component
@Configurable
@EnableScheduling
public class Quartz {
		
		//@Scheduled(cron="0 0 0/2 * * ? ")  
		int a=0;
		/**
		 * 定时任务启动
		 * @throws ParseException
		 * @throws IOExcept。ion
		 */
		/*@Scheduled(cron="0/2 * * * * ? ")
	    public void timerToNow(){
			for (int i = 0; i < 100000000; i++) {
				carService.saveCarList(i);
			}
				a=a+1;
	    }*/
		
}
